package com.czxy.dem01;

public class Test18 {

    public static void main(String[] args) {

        Car car01 = new Alto("奥拓","黑色",10000.0);
        Car car02 = new Audi("奥迪","白色",20000.0);

        RentalHouse rh = new RentalHouse();
        double rent = rh.rent(car01, 5);
        double rent1 = rh.rent(car02, 6);
        System.out.println("奥拓价格："+rent);
        System.out.println("奥迪价格："+rent1);
    }
}
